// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import { Swipe, SwipeItem, Header, InfiniteScroll } from 'mint-ui'

Vue.use(InfiniteScroll)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(Header.name, Header)
import AMap from 'vue-amap';

Vue.use(AMap);

AMap.initAMapApiLoader({
  key: '5d750c5c10bc16c36c3e74bb84a06123',
  plugin: ['AMap.Geolocation']
});

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {
    App
  }
})
